package com.ruoyi.merchant.controller;

import com.ruoyi.common.core.cg.pojo.Synthesis;
import com.ruoyi.merchant.service.SynthesisService;
import com.ruoyi.merchant.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/syn")
public class SynthesisController {
    @Autowired
    private SynthesisService synthesisService;

    @RequestMapping("/save")
    public Result SynthesSave(@RequestBody Synthesis synthesis){
        Result result = synthesisService.SynthesSave(synthesis);
        return result;
    }
}
